package com.lagou.provider.impl;

import com.lagou.provider.HelloServiceA;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;


@Service
public class HelloServiceAImpl implements HelloServiceA {

  @Override
  public String hello() {
    System.out.println(" client ip:" + RpcContext.getContext().getAttachment("clientIp"));
    return "dubbo-a";
  }
}
